//
//  LocationSensor.h
//  gdemm
//
//  Created by 乔明超 on 16/4/14.
//  Copyright © 2016年 Goldencis. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Location.h"
#define LOCATION_TYPE_QRCODE 0x30000001
#define LOCATION_TYPE_GPS 0x30000002
#define LOCATION_TYPE_WLAN 0x30000003
@class LocationSensor;
@protocol OnLocationListenerDelegate <NSObject>

- (void)locationSensor:(LocationSensor *)locationSensor onReceiveLocation:(Location *)location;

@end
@interface LocationSensor : NSObject
@property (assign,nonatomic) int mMode ;
+ (instancetype)getInstance;
- (NSString *)getAddrFromQrcode;
- (void)registerListener:(id<OnLocationListenerDelegate>)listener;
- (void)unRegisterListener:(id<OnLocationListenerDelegate>)listener;
- (void)destory;
- (void)requestLocationWithMode:(int)mode;
@end
